﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Users/MasterPage.master" AutoEventWireup="true"
    CodeFile="updateprofile.aspx.cs" Inherits="Users_updateprofile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="First Name:" Width="200px"></asp:Label>
        <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFirstName"
            ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
    </div>
    <div>
        <asp:Label ID="Label2" runat="server" Text="Last Name:" Width="200px"></asp:Label>
        <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLastName"
            ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
    </div>
    <div>
        <asp:Label ID="Label3" runat="server" Text="Age:" Width="200px"></asp:Label>
        <asp:TextBox ID="txtAge" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtAge"
            ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
    </div>
    <div style="margin-top: 8px;">
        <asp:Label ID="Label7" runat="server" Text="Gender:" Width="200px"></asp:Label>
        <asp:RadioButton ID="RadioButton1" runat="server" Text="Male" 
            GroupName="gender" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:RadioButton ID="RadioButton2" runat="server" Text="Female" 
            GroupName="gender" />
    </div>
    <div>
        <asp:Label ID="Label4" runat="server" Text="Address:" Width="200px"></asp:Label>
        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAddress"
            ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
    </div>
    <div>
        <asp:Label ID="Label5" runat="server" Text="Phone Number:" Width="200px"></asp:Label>
        <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtPhoneNumber"
            ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtPhoneNumber"
            ErrorMessage="RegularExpressionValidator" ValidationExpression="\d{9}"><br />Phone Number must have 9 digits</asp:RegularExpressionValidator>
    </div>
    <div>
        <asp:Label ID="Label6" runat="server" Text="Credit Card:" Width="200px"></asp:Label>
        <asp:TextBox ID="txtCreditCard" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCreditCard"
            ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCreditCard"
            ErrorMessage="RegularExpressionValidator" ValidationExpression="\d{11}"><br />Credit Card must have 11 digits</asp:RegularExpressionValidator>
    </div>
    <div>

        <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click1" />
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="button2" runat="server" Text="Cancel" CausesValidation="False" OnClick="button2_Click" /></div>

</asp:Content>
